package com.kingyun.gpsinspection.purificationservice.facade.service.jsm.teaminfo;

import com.alibaba.fastjson.JSONObject;
import com.kingyun.gpsinspection.purificationservice.facade.model.BootstrapSearchBean;
import com.kingyun.gpsinspection.purificationservice.facade.model.jsm.Employee;
import com.kingyun.gpsinspection.purificationservice.facade.model.jsm.TeamMembers;

import java.util.List;
import java.util.Map;

/**
 * Created by zmling on 2016/12/14.
 * 班组成员信息
 */
public interface JsmTeamMembersService {

    /**
     * 新增班组成员信息
     * @param teamMembers
     * @return
     * @throws Exception
     */
    Map<String,Object> addTeamMember(TeamMembers teamMembers, Employee employee)throws Exception;

    /**
     * 分页查询班组成员信息
     * @param bootstrapSearchBean
     * @return
     * @throws Exception
     */
    JSONObject findTeamMemberId(BootstrapSearchBean bootstrapSearchBean)throws Exception;

    /**
     * 查询班组成员信息
     * @param teamId
     * @param employeeId
     * @return
     */
    List<TeamMembers> findTeamMembers(String teamId, String employeeId);

    /**
     * 删除班组成员信息
     * @param teamIds
     * @return
     * @throws Exception
     */
    int deleteTeam(Map teamIds)throws Exception;

    /**
     * 查询班组成员
     * @param teamMembersId
     * @return
     * @throws Exception
     */
    TeamMembers findByteamMembersId(String teamMembersId)throws Exception;

    /**
     * 查询班组成员信息
     *
     * @param record
     * @return
     */
    List<TeamMembers> selectByParamList(TeamMembers record);

    /**
     * 删除班组成员信息
     * @param teamIds
     * @return
     * @throws Exception
     */
    int updateTeamId(Map teamIds)throws Exception;

    /**
     * 根据人员信息ID查询成员信息
     *
     * @param employeeId
     * @return
     */
    TeamMembers selectByEmployeeId(String employeeId);

}
